package com.ruoyi.project.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 系统价格配置对象 t_cms_price
 * 
 * @author ruoyi
 * @date 2020-08-31
 */
public class CmsPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 配置名称 */
    @Excel(name = "配置名称")
    private String cfgName;

    /** 价格类型 */
    @Excel(name = "价格类型")
    private Integer priceType;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private Integer carType;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtTime;

    /** 价格 */
    @Excel(name = "汽油车价格")
    private BigDecimal price;

    /** 柴油车价格 */
    @Excel(name = "柴油车价格")
    private BigDecimal cyPrice;

    /** 新能源价格 */
    @Excel(name = "新能源价格")
    private BigDecimal xnyPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCfgName(String cfgName) 
    {
        this.cfgName = cfgName;
    }

    public String getCfgName() 
    {
        return cfgName;
    }
    public void setPriceType(Integer priceType) 
    {
        this.priceType = priceType;
    }

    public Integer getPriceType() 
    {
        return priceType;
    }
    public void setCarType(Integer carType) 
    {
        this.carType = carType;
    }

    public Integer getCarType() 
    {
        return carType;
    }
    public void setGmtTime(Date gmtTime) 
    {
        this.gmtTime = gmtTime;
    }

    public Date getGmtTime() 
    {
        return gmtTime;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public BigDecimal getCyPrice() {
        return cyPrice;
    }

    public void setCyPrice(BigDecimal cyPrice) {
        this.cyPrice = cyPrice;
    }

    public BigDecimal getXnyPrice() {
        return xnyPrice;
    }

    public void setXnyPrice(BigDecimal xnyPrice) {
        this.xnyPrice = xnyPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cfgName", getCfgName())
            .append("priceType", getPriceType())
            .append("carType", getCarType())
            .append("gmtTime", getGmtTime())
            .append("updateTime", getUpdateTime())
            .append("price", getPrice())
            .append("cyPrice", getCyPrice())
            .append("xnyPrice", getXnyPrice())
            .toString();
    }
}
